<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Agents Language: C:/Users/Caio/Dropbox/Mestrado/agents-language/Compiladores/Compiladores/Value.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Agents Language
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A Programming Language for Robots</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_5529265c7de0d44fe03237e3df773496.html">Compiladores</a></li><li class="navelem"><a class="el" href="dir_64a977d312ff032528a197ff58294cfe.html">Compiladores</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Value.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_value_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#ifndef __VALUE_H</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define __VALUE_H</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_common_8h.html">Common.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_value.html">   17</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_value.html">Value</a></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_value.html#ae38a14048b4d24af576ef4e3ad133b1b">   23</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_value.html#ae38a14048b4d24af576ef4e3ad133b1b">number</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_value.html#a00d43695c6292733de55f6f445a03c9d">   27</a></span>&#160;    <span class="keywordtype">string</span> <a class="code" href="class_value.html#a00d43695c6292733de55f6f445a03c9d">str</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_value.html#a5bdb0c28052e3cb54d33a2fc99cae0c3">   31</a></span>&#160;    <a class="code" href="_common_8h.html#a02f6dd32782c1a8ed2f2af208900b904">CompOp</a> <a class="code" href="class_value.html#a5bdb0c28052e3cb54d33a2fc99cae0c3">compOp</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_value.html#ac9bc4c7005ff0e62f8eec7cd4169abb2">   35</a></span>&#160;    <a class="code" href="_common_8h.html#a27fa1414f26d1f05439ab10db64bea6f">LogicOp</a> <a class="code" href="class_value.html#ac9bc4c7005ff0e62f8eec7cd4169abb2">logicOp</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="class_value.html#aad94dc212bf4b329a1b21c7f501d9a60">   39</a></span>&#160;    <a class="code" href="_common_8h.html#a6e38272a1ae7640573f5ca983278fa08">ArithOp</a> <a class="code" href="class_value.html#aad94dc212bf4b329a1b21c7f501d9a60">arithOp</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_value.html#a3b82f1e9c65601985a27e42b2b8746ff">SetValue</a>(<a class="code" href="_common_8h.html#a7b97d4a9bb8e67a5f5257fe024b6a595">Type</a> type, <span class="keywordtype">void</span> *val);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <a class="code" href="class_value.html#abc2a5a2e6484fac66dae2539cc955667">Value</a>();</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="class_value.html#a3a578f458da8a4ab67052dba0f7bffdd">~Value</a>();</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_value.html#a7f7aaf68c2feb8b3f6838dd6ae921749">SetValueFromString</a>(std::string <a class="code" href="class_value.html#a00d43695c6292733de55f6f445a03c9d">str</a>);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_value.html#af29c8e586d2d761babe265d2837c74ca">SetValueFromNumber</a>(<span class="keywordtype">double</span> <a class="code" href="class_value.html#ae38a14048b4d24af576ef4e3ad133b1b">number</a>);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_value.html#acf63d39f12d1236ce8211cc952784642">SetValueFromOpComp</a>(<a class="code" href="_common_8h.html#a02f6dd32782c1a8ed2f2af208900b904">CompOp</a> op);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_value.html#adaabfb5a1e2d3715666d24f4451fe60b">SetValueFromOpLogic</a>(<a class="code" href="_common_8h.html#a27fa1414f26d1f05439ab10db64bea6f">LogicOp</a> op);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_value.html#a18aea15dec3613a770822901182c0aff">SetValueFromOpArit</a>(<a class="code" href="_common_8h.html#a6e38272a1ae7640573f5ca983278fa08">ArithOp</a> op);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_value.html#afabdcfbd101f7ceccc921ab60656f881">GetValue</a>(<a class="code" href="_common_8h.html#a7b97d4a9bb8e67a5f5257fe024b6a595">Type</a> type, <span class="keywordtype">void</span> *val);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_value.html#a4d1272bd66b61b54b380e4d828801479">PrintValue</a>(<a class="code" href="_common_8h.html#a7b97d4a9bb8e67a5f5257fe024b6a595">Type</a> type);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;};</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="class_value_html_ac9bc4c7005ff0e62f8eec7cd4169abb2"><div class="ttname"><a href="class_value.html#ac9bc4c7005ff0e62f8eec7cd4169abb2">Value::logicOp</a></div><div class="ttdeci">LogicOp logicOp</div><div class="ttdoc">logic operator value </div><div class="ttdef"><b>Definition:</b> Value.h:35</div></div>
<div class="ttc" id="class_value_html_acf63d39f12d1236ce8211cc952784642"><div class="ttname"><a href="class_value.html#acf63d39f12d1236ce8211cc952784642">Value::SetValueFromOpComp</a></div><div class="ttdeci">void SetValueFromOpComp(CompOp op)</div><div class="ttdoc">Set the value from comparation operator. </div><div class="ttdef"><b>Definition:</b> Value.cpp:83</div></div>
<div class="ttc" id="class_value_html_a4d1272bd66b61b54b380e4d828801479"><div class="ttname"><a href="class_value.html#a4d1272bd66b61b54b380e4d828801479">Value::PrintValue</a></div><div class="ttdeci">void PrintValue(Type type)</div><div class="ttdoc">Print on console the value by type. </div><div class="ttdef"><b>Definition:</b> Value.cpp:98</div></div>
<div class="ttc" id="class_value_html_a7f7aaf68c2feb8b3f6838dd6ae921749"><div class="ttname"><a href="class_value.html#a7f7aaf68c2feb8b3f6838dd6ae921749">Value::SetValueFromString</a></div><div class="ttdeci">void SetValueFromString(std::string str)</div><div class="ttdoc">Set the value from string. </div><div class="ttdef"><b>Definition:</b> Value.cpp:73</div></div>
<div class="ttc" id="class_value_html_ae38a14048b4d24af576ef4e3ad133b1b"><div class="ttname"><a href="class_value.html#ae38a14048b4d24af576ef4e3ad133b1b">Value::number</a></div><div class="ttdeci">double number</div><div class="ttdoc">number value </div><div class="ttdef"><b>Definition:</b> Value.h:23</div></div>
<div class="ttc" id="class_value_html_abc2a5a2e6484fac66dae2539cc955667"><div class="ttname"><a href="class_value.html#abc2a5a2e6484fac66dae2539cc955667">Value::Value</a></div><div class="ttdeci">Value()</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> Value.cpp:9</div></div>
<div class="ttc" id="class_value_html_af29c8e586d2d761babe265d2837c74ca"><div class="ttname"><a href="class_value.html#af29c8e586d2d761babe265d2837c74ca">Value::SetValueFromNumber</a></div><div class="ttdeci">void SetValueFromNumber(double number)</div><div class="ttdoc">Set the value from number. </div><div class="ttdef"><b>Definition:</b> Value.cpp:78</div></div>
<div class="ttc" id="class_value_html_a00d43695c6292733de55f6f445a03c9d"><div class="ttname"><a href="class_value.html#a00d43695c6292733de55f6f445a03c9d">Value::str</a></div><div class="ttdeci">string str</div><div class="ttdoc">string value </div><div class="ttdef"><b>Definition:</b> Value.h:27</div></div>
<div class="ttc" id="_common_8h_html_a7b97d4a9bb8e67a5f5257fe024b6a595"><div class="ttname"><a href="_common_8h.html#a7b97d4a9bb8e67a5f5257fe024b6a595">Type</a></div><div class="ttdeci">enum TypeEnum Type</div><div class="ttdoc">Node value type enumeration. </div></div>
<div class="ttc" id="class_value_html"><div class="ttname"><a href="class_value.html">Value</a></div><div class="ttdoc">Store a value from any kind. </div><div class="ttdef"><b>Definition:</b> Value.h:17</div></div>
<div class="ttc" id="class_value_html_a5bdb0c28052e3cb54d33a2fc99cae0c3"><div class="ttname"><a href="class_value.html#a5bdb0c28052e3cb54d33a2fc99cae0c3">Value::compOp</a></div><div class="ttdeci">CompOp compOp</div><div class="ttdoc">comparation operator value </div><div class="ttdef"><b>Definition:</b> Value.h:31</div></div>
<div class="ttc" id="_common_8h_html_a27fa1414f26d1f05439ab10db64bea6f"><div class="ttname"><a href="_common_8h.html#a27fa1414f26d1f05439ab10db64bea6f">LogicOp</a></div><div class="ttdeci">enum LogicOpEnum LogicOp</div><div class="ttdoc">Logic operator enumeration. </div></div>
<div class="ttc" id="class_value_html_adaabfb5a1e2d3715666d24f4451fe60b"><div class="ttname"><a href="class_value.html#adaabfb5a1e2d3715666d24f4451fe60b">Value::SetValueFromOpLogic</a></div><div class="ttdeci">void SetValueFromOpLogic(LogicOp op)</div><div class="ttdoc">Set the value from a logic operator. </div><div class="ttdef"><b>Definition:</b> Value.cpp:88</div></div>
<div class="ttc" id="class_value_html_a3a578f458da8a4ab67052dba0f7bffdd"><div class="ttname"><a href="class_value.html#a3a578f458da8a4ab67052dba0f7bffdd">Value::~Value</a></div><div class="ttdeci">~Value()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> Value.cpp:15</div></div>
<div class="ttc" id="class_value_html_a3b82f1e9c65601985a27e42b2b8746ff"><div class="ttname"><a href="class_value.html#a3b82f1e9c65601985a27e42b2b8746ff">Value::SetValue</a></div><div class="ttdeci">void SetValue(Type type, void *val)</div><div class="ttdoc">Set value from a void pointer by type. </div><div class="ttdef"><b>Definition:</b> Value.cpp:39</div></div>
<div class="ttc" id="_common_8h_html"><div class="ttname"><a href="_common_8h.html">Common.h</a></div><div class="ttdoc">Common enumerations definitions. </div></div>
<div class="ttc" id="_common_8h_html_a02f6dd32782c1a8ed2f2af208900b904"><div class="ttname"><a href="_common_8h.html#a02f6dd32782c1a8ed2f2af208900b904">CompOp</a></div><div class="ttdeci">enum CompOpEnum CompOp</div><div class="ttdoc">Comparation Operator Enumeration. </div></div>
<div class="ttc" id="_common_8h_html_a6e38272a1ae7640573f5ca983278fa08"><div class="ttname"><a href="_common_8h.html#a6e38272a1ae7640573f5ca983278fa08">ArithOp</a></div><div class="ttdeci">enum ArithOpEnum ArithOp</div><div class="ttdoc">Arithmetic operator enumeration. </div></div>
<div class="ttc" id="class_value_html_afabdcfbd101f7ceccc921ab60656f881"><div class="ttname"><a href="class_value.html#afabdcfbd101f7ceccc921ab60656f881">Value::GetValue</a></div><div class="ttdeci">void GetValue(Type type, void *val)</div><div class="ttdoc">Get the value from a given type. </div><div class="ttdef"><b>Definition:</b> Value.cpp:20</div></div>
<div class="ttc" id="class_value_html_aad94dc212bf4b329a1b21c7f501d9a60"><div class="ttname"><a href="class_value.html#aad94dc212bf4b329a1b21c7f501d9a60">Value::arithOp</a></div><div class="ttdeci">ArithOp arithOp</div><div class="ttdoc">arithmetic operator value </div><div class="ttdef"><b>Definition:</b> Value.h:39</div></div>
<div class="ttc" id="class_value_html_a18aea15dec3613a770822901182c0aff"><div class="ttname"><a href="class_value.html#a18aea15dec3613a770822901182c0aff">Value::SetValueFromOpArit</a></div><div class="ttdeci">void SetValueFromOpArit(ArithOp op)</div><div class="ttdoc">Set the value from an arithmetic operator. </div><div class="ttdef"><b>Definition:</b> Value.cpp:93</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Sep 22 2014 10:41:47 for Agents Language by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>
